package cn.youth996.springcloud.controller;

import cn.youth996.springcloud.feign.OpenFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Zhan Xinjian
 * @date 2021/3/6
 */
@Slf4j
@RestController
public class OrderController {
    @Resource
    private OpenFeignService openFeignService;

    @GetMapping("/open-feign/order/get")
    public String get() {
        return openFeignService.get();
    }

    @GetMapping("/open-feign/order/timeOut")
    public String timeOut(){
        return openFeignService.timeOut();
    }

}
